using System;
using System.Collections.Generic;
using System.Text;
using AF_ORM.CORE;
using System.Data;
using System.Configuration;
using QuanLyThietBi.Config;     
using QuanLyThietBi.Entity;
namespace QuanLyThietBi.ManagerBase
{
                

     public abstract class TBL_HoSoBaoHanhSuaChuaManagerBase
    {
        public TBL_HoSoBaoHanhSuaChuaManagerBase()
        {
            Adapter.ConnectionString =  ConnectionConfig.ConnectionString;            
        }
                    
 
        /// <summary>
        /// Them moi du lieu
        /// </summary>
        /// <returns>TBL_HoSoBaoHanhSuaChuaEntity</returns>
        public TBL_HoSoBaoHanhSuaChuaEntity Insert(TBL_HoSoBaoHanhSuaChuaEntity obj)
        { 
            return (TBL_HoSoBaoHanhSuaChuaEntity) Adapter.Insert(obj);             
        }
 
 
        /// <summary>
        /// Update du lieu theo khoa chinh cua object
        /// </summary>
        /// <returns>TBL_HoSoBaoHanhSuaChuaEntity</returns>
        public TBL_HoSoBaoHanhSuaChuaEntity Update(TBL_HoSoBaoHanhSuaChuaEntity obj)
        { 
            return (TBL_HoSoBaoHanhSuaChuaEntity)Adapter.Update(obj);             
        }
 
 
        /// <summary>
        /// Update du lieu theo dieu kien trong object
        /// </summary>
        /// <returns>TBL_HoSoBaoHanhSuaChuaEntity</returns>
        public TBL_HoSoBaoHanhSuaChuaEntity UpdateWithCondition(TBL_HoSoBaoHanhSuaChuaEntity obj,TBL_HoSoBaoHanhSuaChuaEntity objCond)
        { 
            return (TBL_HoSoBaoHanhSuaChuaEntity)Adapter.UpdateWithCondition(obj,objCond);             
        }
 
 
        public TBL_HoSoBaoHanhSuaChuaEntity Delete(TBL_HoSoBaoHanhSuaChuaEntity obj)
        { 
            return (TBL_HoSoBaoHanhSuaChuaEntity)Adapter.Delete(obj);             
        }
 
 
        public TBL_HoSoBaoHanhSuaChuaEntity DeleteWithCondition(TBL_HoSoBaoHanhSuaChuaEntity objCond)
        { 
            return (TBL_HoSoBaoHanhSuaChuaEntity)Adapter.DeleteWithCondition(objCond);             
        }
 


        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien DaiDienNhaCungCap duoc set trong object
        /// </summary>
        /// <returns>TBL_HoSoBaoHanhSuaChuaEntity</returns>
        public TBL_HoSoBaoHanhSuaChuaEntity DeleteByDaiDienNhaCungCap (TBL_HoSoBaoHanhSuaChuaEntity obj)
        { 
            return (TBL_HoSoBaoHanhSuaChuaEntity)Adapter.DeleteByField(obj,"DaiDienNhaCungCap");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien DaiDienNhaCungCap 
        /// </summary>
        /// <returns>TBL_HoSoBaoHanhSuaChuaEntity</returns>
        public TBL_HoSoBaoHanhSuaChuaEntity DeleteByDaiDienNhaCungCap (string DaiDienNhaCungCap )
        { 
            TBL_HoSoBaoHanhSuaChuaEntity obj = new TBL_HoSoBaoHanhSuaChuaEntity();
            obj.DaiDienNhaCungCap = DaiDienNhaCungCap;  
            return (TBL_HoSoBaoHanhSuaChuaEntity)Adapter.DeleteByField(obj,"DaiDienNhaCungCap");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien MaHSBaoHanh duoc set trong object
        /// </summary>
        /// <returns>TBL_HoSoBaoHanhSuaChuaEntity</returns>
        public TBL_HoSoBaoHanhSuaChuaEntity DeleteByMaHSBaoHanh (TBL_HoSoBaoHanhSuaChuaEntity obj)
        { 
            return (TBL_HoSoBaoHanhSuaChuaEntity)Adapter.DeleteByField(obj,"MaHSBaoHanh");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien MaHSBaoHanh 
        /// </summary>
        /// <returns>TBL_HoSoBaoHanhSuaChuaEntity</returns>
        public TBL_HoSoBaoHanhSuaChuaEntity DeleteByMaHSBaoHanh (string MaHSBaoHanh )
        { 
            TBL_HoSoBaoHanhSuaChuaEntity obj = new TBL_HoSoBaoHanhSuaChuaEntity();
            obj.MaHSBaoHanh = MaHSBaoHanh;  
            return (TBL_HoSoBaoHanhSuaChuaEntity)Adapter.DeleteByField(obj,"MaHSBaoHanh");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien NgayGiaoThietBi duoc set trong object
        /// </summary>
        /// <returns>TBL_HoSoBaoHanhSuaChuaEntity</returns>
        public TBL_HoSoBaoHanhSuaChuaEntity DeleteByNgayGiaoThietBi (TBL_HoSoBaoHanhSuaChuaEntity obj)
        { 
            return (TBL_HoSoBaoHanhSuaChuaEntity)Adapter.DeleteByField(obj,"NgayGiaoThietBi");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien NgayGiaoThietBi 
        /// </summary>
        /// <returns>TBL_HoSoBaoHanhSuaChuaEntity</returns>
        public TBL_HoSoBaoHanhSuaChuaEntity DeleteByNgayGiaoThietBi (string NgayGiaoThietBi )
        { 
            TBL_HoSoBaoHanhSuaChuaEntity obj = new TBL_HoSoBaoHanhSuaChuaEntity();
            obj.NgayGiaoThietBi = NgayGiaoThietBi;  
            return (TBL_HoSoBaoHanhSuaChuaEntity)Adapter.DeleteByField(obj,"NgayGiaoThietBi");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien NgayHenTra duoc set trong object
        /// </summary>
        /// <returns>TBL_HoSoBaoHanhSuaChuaEntity</returns>
        public TBL_HoSoBaoHanhSuaChuaEntity DeleteByNgayHenTra (TBL_HoSoBaoHanhSuaChuaEntity obj)
        { 
            return (TBL_HoSoBaoHanhSuaChuaEntity)Adapter.DeleteByField(obj,"NgayHenTra");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien NgayHenTra 
        /// </summary>
        /// <returns>TBL_HoSoBaoHanhSuaChuaEntity</returns>
        public TBL_HoSoBaoHanhSuaChuaEntity DeleteByNgayHenTra (string NgayHenTra )
        { 
            TBL_HoSoBaoHanhSuaChuaEntity obj = new TBL_HoSoBaoHanhSuaChuaEntity();
            obj.NgayHenTra = NgayHenTra;  
            return (TBL_HoSoBaoHanhSuaChuaEntity)Adapter.DeleteByField(obj,"NgayHenTra");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien NgayLap duoc set trong object
        /// </summary>
        /// <returns>TBL_HoSoBaoHanhSuaChuaEntity</returns>
        public TBL_HoSoBaoHanhSuaChuaEntity DeleteByNgayLap (TBL_HoSoBaoHanhSuaChuaEntity obj)
        { 
            return (TBL_HoSoBaoHanhSuaChuaEntity)Adapter.DeleteByField(obj,"NgayLap");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien NgayLap 
        /// </summary>
        /// <returns>TBL_HoSoBaoHanhSuaChuaEntity</returns>
        public TBL_HoSoBaoHanhSuaChuaEntity DeleteByNgayLap (string NgayLap )
        { 
            TBL_HoSoBaoHanhSuaChuaEntity obj = new TBL_HoSoBaoHanhSuaChuaEntity();
            obj.NgayLap = NgayLap;  
            return (TBL_HoSoBaoHanhSuaChuaEntity)Adapter.DeleteByField(obj,"NgayLap");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien NguoiLap duoc set trong object
        /// </summary>
        /// <returns>TBL_HoSoBaoHanhSuaChuaEntity</returns>
        public TBL_HoSoBaoHanhSuaChuaEntity DeleteByNguoiLap (TBL_HoSoBaoHanhSuaChuaEntity obj)
        { 
            return (TBL_HoSoBaoHanhSuaChuaEntity)Adapter.DeleteByField(obj,"NguoiLap");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien NguoiLap 
        /// </summary>
        /// <returns>TBL_HoSoBaoHanhSuaChuaEntity</returns>
        public TBL_HoSoBaoHanhSuaChuaEntity DeleteByNguoiLap (string NguoiLap )
        { 
            TBL_HoSoBaoHanhSuaChuaEntity obj = new TBL_HoSoBaoHanhSuaChuaEntity();
            obj.NguoiLap = NguoiLap;  
            return (TBL_HoSoBaoHanhSuaChuaEntity)Adapter.DeleteByField(obj,"NguoiLap");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien NoiDungBaoHanh duoc set trong object
        /// </summary>
        /// <returns>TBL_HoSoBaoHanhSuaChuaEntity</returns>
        public TBL_HoSoBaoHanhSuaChuaEntity DeleteByNoiDungBaoHanh (TBL_HoSoBaoHanhSuaChuaEntity obj)
        { 
            return (TBL_HoSoBaoHanhSuaChuaEntity)Adapter.DeleteByField(obj,"NoiDungBaoHanh");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien NoiDungBaoHanh 
        /// </summary>
        /// <returns>TBL_HoSoBaoHanhSuaChuaEntity</returns>
        public TBL_HoSoBaoHanhSuaChuaEntity DeleteByNoiDungBaoHanh (string NoiDungBaoHanh )
        { 
            TBL_HoSoBaoHanhSuaChuaEntity obj = new TBL_HoSoBaoHanhSuaChuaEntity();
            obj.NoiDungBaoHanh = NoiDungBaoHanh;  
            return (TBL_HoSoBaoHanhSuaChuaEntity)Adapter.DeleteByField(obj,"NoiDungBaoHanh");
        }

 
        /// <summary>
        /// Lay du lieu theo khoa chinh object
        /// </summary>
        /// <returns></returns>
        public TBL_HoSoBaoHanhSuaChuaEntity Select(TBL_HoSoBaoHanhSuaChuaEntity obj)
        { 
            return (TBL_HoSoBaoHanhSuaChuaEntity) Adapter.Select(obj);             
        }
 
 
        /// <summary>
        /// Lay du lieu theo cac dieu kien duoc set trong object
        /// </summary>
        /// <returns></returns>
        public DataTable SelectWithCondition(TBL_HoSoBaoHanhSuaChuaEntity obj)
        { 
            return  Adapter.SelectWithCondition(obj);             
        }
 
 
        /// <summary>
        /// Lay du lieu theo cac dieu kien duoc set trong object
        /// </summary>
        /// <returns></returns>
        public DataTable SelectWithCondition(TBL_HoSoBaoHanhSuaChuaEntity obj,SelectOptions option)
        {             
            return  Adapter.SelectWithCondition(obj,option);             
        }
 
 
        /// <summary>
        /// Lay tat ca cac du lieu trong table
        /// </summary>
        /// <returns></returns>
        public DataTable SelectAll()
        { 
            return Adapter.SelectAll(new TBL_HoSoBaoHanhSuaChuaEntity());             
        }
 
 
        /// <summary>
        /// Lay tat ca cac du lieu trong table
        /// </summary>
        /// <returns></returns>
        public DataTable SelectAll(SelectOptions option)
        { 
            return Adapter.SelectAll(new TBL_HoSoBaoHanhSuaChuaEntity(),option);             
        }
 
 
        /// <summary>
        /// Lay tat ca cac du lieu trong table
        /// </summary>
        /// <returns></returns>
        public List<TBL_HoSoBaoHanhSuaChuaEntity> SelectAllLST()
        { 
            return  (List<TBL_HoSoBaoHanhSuaChuaEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectAll(new TBL_HoSoBaoHanhSuaChuaEntity()),new TBL_HoSoBaoHanhSuaChuaEntity());           
        }
 
 
        /// <summary>
        /// Lay tat ca cac du lieu trong table
        /// </summary>
        /// <returns></returns>
        public List<TBL_HoSoBaoHanhSuaChuaEntity> SelectAllLST(SelectOptions option)
        { 
            return (List<TBL_HoSoBaoHanhSuaChuaEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectAll(new TBL_HoSoBaoHanhSuaChuaEntity(),option),new TBL_HoSoBaoHanhSuaChuaEntity());             
        }
 

        /// <summary>
        /// Lay du lieu theo cac dieu kien DaiDienNhaCungCap duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByDaiDienNhaCungCap (TBL_HoSoBaoHanhSuaChuaEntity obj)
        { 
            return Adapter.SelectByField(obj,"DaiDienNhaCungCap");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien DaiDienNhaCungCap duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByDaiDienNhaCungCap (TBL_HoSoBaoHanhSuaChuaEntity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"DaiDienNhaCungCap",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien DaiDienNhaCungCap duoc set trong object
        /// </summary>
        /// <returns>List<TBL_HoSoBaoHanhSuaChuaEntity></returns>
        public List<TBL_HoSoBaoHanhSuaChuaEntity> SelectByDaiDienNhaCungCapLST (TBL_HoSoBaoHanhSuaChuaEntity obj)
        { 
            return  (List<TBL_HoSoBaoHanhSuaChuaEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"DaiDienNhaCungCap"),new TBL_HoSoBaoHanhSuaChuaEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien DaiDienNhaCungCap duoc set trong object
        /// </summary>
        /// <returns>List<TBL_HoSoBaoHanhSuaChuaEntity></returns>
        public List<TBL_HoSoBaoHanhSuaChuaEntity> SelectByDaiDienNhaCungCapLST (TBL_HoSoBaoHanhSuaChuaEntity obj,SelectOptions option)
        { 
            return  (List<TBL_HoSoBaoHanhSuaChuaEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"DaiDienNhaCungCap",option),new TBL_HoSoBaoHanhSuaChuaEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien DaiDienNhaCungCap 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByDaiDienNhaCungCap (string DaiDienNhaCungCap )
        { 
            TBL_HoSoBaoHanhSuaChuaEntity obj = new TBL_HoSoBaoHanhSuaChuaEntity();
            obj.DaiDienNhaCungCap = DaiDienNhaCungCap;  
            return Adapter.SelectByField(obj,"DaiDienNhaCungCap");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien DaiDienNhaCungCap duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByDaiDienNhaCungCap (string DaiDienNhaCungCap, SelectOptions option)
        { 
            TBL_HoSoBaoHanhSuaChuaEntity obj = new TBL_HoSoBaoHanhSuaChuaEntity();
            obj.DaiDienNhaCungCap = DaiDienNhaCungCap;  
            return Adapter.SelectByField(obj,"DaiDienNhaCungCap",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien DaiDienNhaCungCap 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<TBL_HoSoBaoHanhSuaChuaEntity> SelectByDaiDienNhaCungCapLST (string DaiDienNhaCungCap )
        { 
            TBL_HoSoBaoHanhSuaChuaEntity obj = new TBL_HoSoBaoHanhSuaChuaEntity();
            obj.DaiDienNhaCungCap = DaiDienNhaCungCap;  
            return  (List<TBL_HoSoBaoHanhSuaChuaEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"DaiDienNhaCungCap"),new TBL_HoSoBaoHanhSuaChuaEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien DaiDienNhaCungCap duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<TBL_HoSoBaoHanhSuaChuaEntity> SelectByDaiDienNhaCungCapLST (string DaiDienNhaCungCap, SelectOptions option)
        { 
            TBL_HoSoBaoHanhSuaChuaEntity obj = new TBL_HoSoBaoHanhSuaChuaEntity();
            obj.DaiDienNhaCungCap = DaiDienNhaCungCap;  
            return  (List<TBL_HoSoBaoHanhSuaChuaEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"DaiDienNhaCungCap",option),new TBL_HoSoBaoHanhSuaChuaEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaHSBaoHanh duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByMaHSBaoHanh (TBL_HoSoBaoHanhSuaChuaEntity obj)
        { 
            return Adapter.SelectByField(obj,"MaHSBaoHanh");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaHSBaoHanh duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByMaHSBaoHanh (TBL_HoSoBaoHanhSuaChuaEntity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"MaHSBaoHanh",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaHSBaoHanh duoc set trong object
        /// </summary>
        /// <returns>List<TBL_HoSoBaoHanhSuaChuaEntity></returns>
        public List<TBL_HoSoBaoHanhSuaChuaEntity> SelectByMaHSBaoHanhLST (TBL_HoSoBaoHanhSuaChuaEntity obj)
        { 
            return  (List<TBL_HoSoBaoHanhSuaChuaEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"MaHSBaoHanh"),new TBL_HoSoBaoHanhSuaChuaEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaHSBaoHanh duoc set trong object
        /// </summary>
        /// <returns>List<TBL_HoSoBaoHanhSuaChuaEntity></returns>
        public List<TBL_HoSoBaoHanhSuaChuaEntity> SelectByMaHSBaoHanhLST (TBL_HoSoBaoHanhSuaChuaEntity obj,SelectOptions option)
        { 
            return  (List<TBL_HoSoBaoHanhSuaChuaEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"MaHSBaoHanh",option),new TBL_HoSoBaoHanhSuaChuaEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaHSBaoHanh 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByMaHSBaoHanh (string MaHSBaoHanh )
        { 
            TBL_HoSoBaoHanhSuaChuaEntity obj = new TBL_HoSoBaoHanhSuaChuaEntity();
            obj.MaHSBaoHanh = MaHSBaoHanh;  
            return Adapter.SelectByField(obj,"MaHSBaoHanh");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaHSBaoHanh duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByMaHSBaoHanh (string MaHSBaoHanh, SelectOptions option)
        { 
            TBL_HoSoBaoHanhSuaChuaEntity obj = new TBL_HoSoBaoHanhSuaChuaEntity();
            obj.MaHSBaoHanh = MaHSBaoHanh;  
            return Adapter.SelectByField(obj,"MaHSBaoHanh",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaHSBaoHanh 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<TBL_HoSoBaoHanhSuaChuaEntity> SelectByMaHSBaoHanhLST (string MaHSBaoHanh )
        { 
            TBL_HoSoBaoHanhSuaChuaEntity obj = new TBL_HoSoBaoHanhSuaChuaEntity();
            obj.MaHSBaoHanh = MaHSBaoHanh;  
            return  (List<TBL_HoSoBaoHanhSuaChuaEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"MaHSBaoHanh"),new TBL_HoSoBaoHanhSuaChuaEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaHSBaoHanh duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<TBL_HoSoBaoHanhSuaChuaEntity> SelectByMaHSBaoHanhLST (string MaHSBaoHanh, SelectOptions option)
        { 
            TBL_HoSoBaoHanhSuaChuaEntity obj = new TBL_HoSoBaoHanhSuaChuaEntity();
            obj.MaHSBaoHanh = MaHSBaoHanh;  
            return  (List<TBL_HoSoBaoHanhSuaChuaEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"MaHSBaoHanh",option),new TBL_HoSoBaoHanhSuaChuaEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien NgayGiaoThietBi duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByNgayGiaoThietBi (TBL_HoSoBaoHanhSuaChuaEntity obj)
        { 
            return Adapter.SelectByField(obj,"NgayGiaoThietBi");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien NgayGiaoThietBi duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByNgayGiaoThietBi (TBL_HoSoBaoHanhSuaChuaEntity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"NgayGiaoThietBi",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien NgayGiaoThietBi duoc set trong object
        /// </summary>
        /// <returns>List<TBL_HoSoBaoHanhSuaChuaEntity></returns>
        public List<TBL_HoSoBaoHanhSuaChuaEntity> SelectByNgayGiaoThietBiLST (TBL_HoSoBaoHanhSuaChuaEntity obj)
        { 
            return  (List<TBL_HoSoBaoHanhSuaChuaEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"NgayGiaoThietBi"),new TBL_HoSoBaoHanhSuaChuaEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien NgayGiaoThietBi duoc set trong object
        /// </summary>
        /// <returns>List<TBL_HoSoBaoHanhSuaChuaEntity></returns>
        public List<TBL_HoSoBaoHanhSuaChuaEntity> SelectByNgayGiaoThietBiLST (TBL_HoSoBaoHanhSuaChuaEntity obj,SelectOptions option)
        { 
            return  (List<TBL_HoSoBaoHanhSuaChuaEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"NgayGiaoThietBi",option),new TBL_HoSoBaoHanhSuaChuaEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien NgayGiaoThietBi 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByNgayGiaoThietBi (string NgayGiaoThietBi )
        { 
            TBL_HoSoBaoHanhSuaChuaEntity obj = new TBL_HoSoBaoHanhSuaChuaEntity();
            obj.NgayGiaoThietBi = NgayGiaoThietBi;  
            return Adapter.SelectByField(obj,"NgayGiaoThietBi");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien NgayGiaoThietBi duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByNgayGiaoThietBi (string NgayGiaoThietBi, SelectOptions option)
        { 
            TBL_HoSoBaoHanhSuaChuaEntity obj = new TBL_HoSoBaoHanhSuaChuaEntity();
            obj.NgayGiaoThietBi = NgayGiaoThietBi;  
            return Adapter.SelectByField(obj,"NgayGiaoThietBi",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien NgayGiaoThietBi 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<TBL_HoSoBaoHanhSuaChuaEntity> SelectByNgayGiaoThietBiLST (string NgayGiaoThietBi )
        { 
            TBL_HoSoBaoHanhSuaChuaEntity obj = new TBL_HoSoBaoHanhSuaChuaEntity();
            obj.NgayGiaoThietBi = NgayGiaoThietBi;  
            return  (List<TBL_HoSoBaoHanhSuaChuaEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"NgayGiaoThietBi"),new TBL_HoSoBaoHanhSuaChuaEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien NgayGiaoThietBi duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<TBL_HoSoBaoHanhSuaChuaEntity> SelectByNgayGiaoThietBiLST (string NgayGiaoThietBi, SelectOptions option)
        { 
            TBL_HoSoBaoHanhSuaChuaEntity obj = new TBL_HoSoBaoHanhSuaChuaEntity();
            obj.NgayGiaoThietBi = NgayGiaoThietBi;  
            return  (List<TBL_HoSoBaoHanhSuaChuaEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"NgayGiaoThietBi",option),new TBL_HoSoBaoHanhSuaChuaEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien NgayHenTra duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByNgayHenTra (TBL_HoSoBaoHanhSuaChuaEntity obj)
        { 
            return Adapter.SelectByField(obj,"NgayHenTra");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien NgayHenTra duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByNgayHenTra (TBL_HoSoBaoHanhSuaChuaEntity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"NgayHenTra",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien NgayHenTra duoc set trong object
        /// </summary>
        /// <returns>List<TBL_HoSoBaoHanhSuaChuaEntity></returns>
        public List<TBL_HoSoBaoHanhSuaChuaEntity> SelectByNgayHenTraLST (TBL_HoSoBaoHanhSuaChuaEntity obj)
        { 
            return  (List<TBL_HoSoBaoHanhSuaChuaEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"NgayHenTra"),new TBL_HoSoBaoHanhSuaChuaEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien NgayHenTra duoc set trong object
        /// </summary>
        /// <returns>List<TBL_HoSoBaoHanhSuaChuaEntity></returns>
        public List<TBL_HoSoBaoHanhSuaChuaEntity> SelectByNgayHenTraLST (TBL_HoSoBaoHanhSuaChuaEntity obj,SelectOptions option)
        { 
            return  (List<TBL_HoSoBaoHanhSuaChuaEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"NgayHenTra",option),new TBL_HoSoBaoHanhSuaChuaEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien NgayHenTra 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByNgayHenTra (string NgayHenTra )
        { 
            TBL_HoSoBaoHanhSuaChuaEntity obj = new TBL_HoSoBaoHanhSuaChuaEntity();
            obj.NgayHenTra = NgayHenTra;  
            return Adapter.SelectByField(obj,"NgayHenTra");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien NgayHenTra duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByNgayHenTra (string NgayHenTra, SelectOptions option)
        { 
            TBL_HoSoBaoHanhSuaChuaEntity obj = new TBL_HoSoBaoHanhSuaChuaEntity();
            obj.NgayHenTra = NgayHenTra;  
            return Adapter.SelectByField(obj,"NgayHenTra",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien NgayHenTra 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<TBL_HoSoBaoHanhSuaChuaEntity> SelectByNgayHenTraLST (string NgayHenTra )
        { 
            TBL_HoSoBaoHanhSuaChuaEntity obj = new TBL_HoSoBaoHanhSuaChuaEntity();
            obj.NgayHenTra = NgayHenTra;  
            return  (List<TBL_HoSoBaoHanhSuaChuaEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"NgayHenTra"),new TBL_HoSoBaoHanhSuaChuaEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien NgayHenTra duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<TBL_HoSoBaoHanhSuaChuaEntity> SelectByNgayHenTraLST (string NgayHenTra, SelectOptions option)
        { 
            TBL_HoSoBaoHanhSuaChuaEntity obj = new TBL_HoSoBaoHanhSuaChuaEntity();
            obj.NgayHenTra = NgayHenTra;  
            return  (List<TBL_HoSoBaoHanhSuaChuaEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"NgayHenTra",option),new TBL_HoSoBaoHanhSuaChuaEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien NgayLap duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByNgayLap (TBL_HoSoBaoHanhSuaChuaEntity obj)
        { 
            return Adapter.SelectByField(obj,"NgayLap");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien NgayLap duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByNgayLap (TBL_HoSoBaoHanhSuaChuaEntity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"NgayLap",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien NgayLap duoc set trong object
        /// </summary>
        /// <returns>List<TBL_HoSoBaoHanhSuaChuaEntity></returns>
        public List<TBL_HoSoBaoHanhSuaChuaEntity> SelectByNgayLapLST (TBL_HoSoBaoHanhSuaChuaEntity obj)
        { 
            return  (List<TBL_HoSoBaoHanhSuaChuaEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"NgayLap"),new TBL_HoSoBaoHanhSuaChuaEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien NgayLap duoc set trong object
        /// </summary>
        /// <returns>List<TBL_HoSoBaoHanhSuaChuaEntity></returns>
        public List<TBL_HoSoBaoHanhSuaChuaEntity> SelectByNgayLapLST (TBL_HoSoBaoHanhSuaChuaEntity obj,SelectOptions option)
        { 
            return  (List<TBL_HoSoBaoHanhSuaChuaEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"NgayLap",option),new TBL_HoSoBaoHanhSuaChuaEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien NgayLap 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByNgayLap (string NgayLap )
        { 
            TBL_HoSoBaoHanhSuaChuaEntity obj = new TBL_HoSoBaoHanhSuaChuaEntity();
            obj.NgayLap = NgayLap;  
            return Adapter.SelectByField(obj,"NgayLap");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien NgayLap duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByNgayLap (string NgayLap, SelectOptions option)
        { 
            TBL_HoSoBaoHanhSuaChuaEntity obj = new TBL_HoSoBaoHanhSuaChuaEntity();
            obj.NgayLap = NgayLap;  
            return Adapter.SelectByField(obj,"NgayLap",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien NgayLap 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<TBL_HoSoBaoHanhSuaChuaEntity> SelectByNgayLapLST (string NgayLap )
        { 
            TBL_HoSoBaoHanhSuaChuaEntity obj = new TBL_HoSoBaoHanhSuaChuaEntity();
            obj.NgayLap = NgayLap;  
            return  (List<TBL_HoSoBaoHanhSuaChuaEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"NgayLap"),new TBL_HoSoBaoHanhSuaChuaEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien NgayLap duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<TBL_HoSoBaoHanhSuaChuaEntity> SelectByNgayLapLST (string NgayLap, SelectOptions option)
        { 
            TBL_HoSoBaoHanhSuaChuaEntity obj = new TBL_HoSoBaoHanhSuaChuaEntity();
            obj.NgayLap = NgayLap;  
            return  (List<TBL_HoSoBaoHanhSuaChuaEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"NgayLap",option),new TBL_HoSoBaoHanhSuaChuaEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien NguoiLap duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByNguoiLap (TBL_HoSoBaoHanhSuaChuaEntity obj)
        { 
            return Adapter.SelectByField(obj,"NguoiLap");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien NguoiLap duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByNguoiLap (TBL_HoSoBaoHanhSuaChuaEntity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"NguoiLap",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien NguoiLap duoc set trong object
        /// </summary>
        /// <returns>List<TBL_HoSoBaoHanhSuaChuaEntity></returns>
        public List<TBL_HoSoBaoHanhSuaChuaEntity> SelectByNguoiLapLST (TBL_HoSoBaoHanhSuaChuaEntity obj)
        { 
            return  (List<TBL_HoSoBaoHanhSuaChuaEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"NguoiLap"),new TBL_HoSoBaoHanhSuaChuaEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien NguoiLap duoc set trong object
        /// </summary>
        /// <returns>List<TBL_HoSoBaoHanhSuaChuaEntity></returns>
        public List<TBL_HoSoBaoHanhSuaChuaEntity> SelectByNguoiLapLST (TBL_HoSoBaoHanhSuaChuaEntity obj,SelectOptions option)
        { 
            return  (List<TBL_HoSoBaoHanhSuaChuaEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"NguoiLap",option),new TBL_HoSoBaoHanhSuaChuaEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien NguoiLap 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByNguoiLap (string NguoiLap )
        { 
            TBL_HoSoBaoHanhSuaChuaEntity obj = new TBL_HoSoBaoHanhSuaChuaEntity();
            obj.NguoiLap = NguoiLap;  
            return Adapter.SelectByField(obj,"NguoiLap");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien NguoiLap duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByNguoiLap (string NguoiLap, SelectOptions option)
        { 
            TBL_HoSoBaoHanhSuaChuaEntity obj = new TBL_HoSoBaoHanhSuaChuaEntity();
            obj.NguoiLap = NguoiLap;  
            return Adapter.SelectByField(obj,"NguoiLap",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien NguoiLap 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<TBL_HoSoBaoHanhSuaChuaEntity> SelectByNguoiLapLST (string NguoiLap )
        { 
            TBL_HoSoBaoHanhSuaChuaEntity obj = new TBL_HoSoBaoHanhSuaChuaEntity();
            obj.NguoiLap = NguoiLap;  
            return  (List<TBL_HoSoBaoHanhSuaChuaEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"NguoiLap"),new TBL_HoSoBaoHanhSuaChuaEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien NguoiLap duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<TBL_HoSoBaoHanhSuaChuaEntity> SelectByNguoiLapLST (string NguoiLap, SelectOptions option)
        { 
            TBL_HoSoBaoHanhSuaChuaEntity obj = new TBL_HoSoBaoHanhSuaChuaEntity();
            obj.NguoiLap = NguoiLap;  
            return  (List<TBL_HoSoBaoHanhSuaChuaEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"NguoiLap",option),new TBL_HoSoBaoHanhSuaChuaEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien NoiDungBaoHanh duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByNoiDungBaoHanh (TBL_HoSoBaoHanhSuaChuaEntity obj)
        { 
            return Adapter.SelectByField(obj,"NoiDungBaoHanh");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien NoiDungBaoHanh duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByNoiDungBaoHanh (TBL_HoSoBaoHanhSuaChuaEntity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"NoiDungBaoHanh",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien NoiDungBaoHanh duoc set trong object
        /// </summary>
        /// <returns>List<TBL_HoSoBaoHanhSuaChuaEntity></returns>
        public List<TBL_HoSoBaoHanhSuaChuaEntity> SelectByNoiDungBaoHanhLST (TBL_HoSoBaoHanhSuaChuaEntity obj)
        { 
            return  (List<TBL_HoSoBaoHanhSuaChuaEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"NoiDungBaoHanh"),new TBL_HoSoBaoHanhSuaChuaEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien NoiDungBaoHanh duoc set trong object
        /// </summary>
        /// <returns>List<TBL_HoSoBaoHanhSuaChuaEntity></returns>
        public List<TBL_HoSoBaoHanhSuaChuaEntity> SelectByNoiDungBaoHanhLST (TBL_HoSoBaoHanhSuaChuaEntity obj,SelectOptions option)
        { 
            return  (List<TBL_HoSoBaoHanhSuaChuaEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"NoiDungBaoHanh",option),new TBL_HoSoBaoHanhSuaChuaEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien NoiDungBaoHanh 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByNoiDungBaoHanh (string NoiDungBaoHanh )
        { 
            TBL_HoSoBaoHanhSuaChuaEntity obj = new TBL_HoSoBaoHanhSuaChuaEntity();
            obj.NoiDungBaoHanh = NoiDungBaoHanh;  
            return Adapter.SelectByField(obj,"NoiDungBaoHanh");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien NoiDungBaoHanh duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByNoiDungBaoHanh (string NoiDungBaoHanh, SelectOptions option)
        { 
            TBL_HoSoBaoHanhSuaChuaEntity obj = new TBL_HoSoBaoHanhSuaChuaEntity();
            obj.NoiDungBaoHanh = NoiDungBaoHanh;  
            return Adapter.SelectByField(obj,"NoiDungBaoHanh",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien NoiDungBaoHanh 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<TBL_HoSoBaoHanhSuaChuaEntity> SelectByNoiDungBaoHanhLST (string NoiDungBaoHanh )
        { 
            TBL_HoSoBaoHanhSuaChuaEntity obj = new TBL_HoSoBaoHanhSuaChuaEntity();
            obj.NoiDungBaoHanh = NoiDungBaoHanh;  
            return  (List<TBL_HoSoBaoHanhSuaChuaEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"NoiDungBaoHanh"),new TBL_HoSoBaoHanhSuaChuaEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien NoiDungBaoHanh duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<TBL_HoSoBaoHanhSuaChuaEntity> SelectByNoiDungBaoHanhLST (string NoiDungBaoHanh, SelectOptions option)
        { 
            TBL_HoSoBaoHanhSuaChuaEntity obj = new TBL_HoSoBaoHanhSuaChuaEntity();
            obj.NoiDungBaoHanh = NoiDungBaoHanh;  
            return  (List<TBL_HoSoBaoHanhSuaChuaEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"NoiDungBaoHanh",option),new TBL_HoSoBaoHanhSuaChuaEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien duoc set trong object
        /// </summary>
        /// <returns>List<TBL_HoSoBaoHanhSuaChuaEntity></returns>
        public List<TBL_HoSoBaoHanhSuaChuaEntity> SelectWithConditionLST (TBL_HoSoBaoHanhSuaChuaEntity obj)
        { 
            return  (List<TBL_HoSoBaoHanhSuaChuaEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectWithCondition(obj),new TBL_HoSoBaoHanhSuaChuaEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien duoc set trong object
        /// </summary>
        /// <returns>List<TBL_HoSoBaoHanhSuaChuaEntity></returns>
        public List<TBL_HoSoBaoHanhSuaChuaEntity> SelectWithConditionLST (TBL_HoSoBaoHanhSuaChuaEntity obj,SelectOptions option)
        { 
            return  (List<TBL_HoSoBaoHanhSuaChuaEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectWithCondition(obj,option),new TBL_HoSoBaoHanhSuaChuaEntity());
        }

}
}
